<?php
class Pageley_Serializer_Sql extends Pageley_Serializer_Abstract {

    public function shouldValidate() {
        return false;
    }
    
    public function encrypt($value) {
        return $value;
    }

    protected function serializeName($propertyName, $attribute) {
        $columnName = Pageley_Util_String::replace($propertyName, ".", "_");
        $columnName = Pageley_Util_String::addUnderscores($columnName);
        if($attribute->isReference()) {
            $columnName .= "_id";
        }
        return $columnName;
    }

    protected function containsKey($values, $serializedName) {
    	return true;
    }
}